package com.wzl.policy.strategyNew;

import com.wzl.policy.factory.GetBeanUtil;
import com.wzl.policy.util.SFtpUtil;
import org.springframework.stereotype.Component;

/**
 * @author weizhongli
 * @since 2022-08-25 23:52
 */

@Component
public class SFtpStrategy implements FileUtilStrategy {

    private SFtpUtil aiSFtpUtil = GetBeanUtil.getApplicationContext().getBean(SFtpUtil.class);

    @Override
    public Boolean login(String ip, int port, String username, String password) {
        return aiSFtpUtil.login(ip,port,username,password);
    }

}